import { transformRecordToOption } from '@/utils/common';



export const enableStatusRecord: Record<Api.Common.EnableStatus, App.I18n.I18nKey> = {
  1: 'page.manage.common.status.enable',
  0: 'page.manage.common.status.disable'
};
export const CategoryRecord: Record<string, App.I18n.I18nKey> = {
  '1': 'page.check.area.categoryList.cleaning',
  '2': 'page.check.area.categoryList.securityGuard',
  '3': 'page.check.area.categoryList.engineering',
  '4': 'page.check.area.categoryList.transport'
};
export const categoryRecordOptions = transformRecordToOption(CategoryRecord);
export const enableStatusOptions = transformRecordToOption(enableStatusRecord);

// export const userGenderRecord: Record<Api.SystemManage.UserGender, App.I18n.I18nKey> = {
//   '1': 'page.manage.user.gender.male',
//   '2': 'page.manage.user.gender.female'
// };
export const roleIdRecord: Record<Api.SystemManage.roleId, App.I18n.I18nKey> = {
  '1': 'page.manage.user.role.administrator',
  '2': 'page.manage.user.role.inspectionTeamLeader',
  '3': 'page.manage.user.role.inspectorNumber'
};
export const roleIdOptions = transformRecordToOption(roleIdRecord);

export const menuTypeRecord: Record<Api.SystemManage.MenuType, App.I18n.I18nKey> = {
  '1': 'page.manage.menu.type.directory',
  '2': 'page.manage.menu.type.menu'
};

export const menuTypeOptions = transformRecordToOption(menuTypeRecord);

export const menuIconTypeRecord: Record<Api.SystemManage.IconType, App.I18n.I18nKey> = {
  '1': 'page.manage.menu.iconType.iconify',
  '2': 'page.manage.menu.iconType.local'
};

export const menuIconTypeOptions = transformRecordToOption(menuIconTypeRecord);
export const batchStatusRecord: Record<Api.SystemManage.BatchStatus, App.I18n.I18nKey> = {
  '0111': 'page.batch.batchStatus.toBeExamine',
  '0112': 'page.batch.batchStatus.isExamine',
  '012': 'page.batch.batchStatus.toBeCommit',
  '013': 'page.batch.batchStatus.toBeArchive',
  '02': 'page.batch.batchStatus.finish',
  '03': 'page.batch.batchStatus.cancel'
};
export const batchStatusOptions = transformRecordToOption(batchStatusRecord);
export const deleteFlagRecord: Record<Api.Common.EnableStatus, App.I18n.I18nKey> = {
  0 : 'completedFlag.default',
  1 : 'completedFlag.success'
}
